<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 多分支 -->
    <div id="app">
        <h3>根据班长有多少钱</h3>
        <div v-if="money >=10000">请全班同学吃豪华海鲜自助</div>
        <!-- v-if="money >=10000"条件 -->
        <div v-if="10000>money >=5000">请全班同学吃季季红火锅</div>
        <div v-if="money >=1000">请全班同学嗦南昌粉</div>
        <div v-if="money >=100">请全班同学喝AD钙奶</div>
        <div v-else>暴打班长一顿，叫他回去取钱</div>
        <!-- 双分支 -->
        <hr>
        <div v-if="age >=18">成年了去偷耳机</div>
        <div v-else>为成年，。去捡垃圾</div>
    </div>
    <script src="../../js/vue.js">

    </script>
    <script>
        new Vue({
            el:'#app',
            data:{
                money:3000,
                age:14
            }
        })
    </script>
</body>
</html>